package com.lagou.edu.listener;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

/**
 * @author wuyancheng
 */
public class BeanDefinition {

    /**
     * bean的全限定名
     */
    private String beanClassName;

    /**
     * bean的别名，默认为类名，也是工程中的ID
     */
    private String alias;

    /**
     *  需要自动装配的字段属性
     *  key: 类型，可以通过set+类型调用set方法
     *  value：类的全限定名
     */
    private HashMap<String, String> propertyMap = new HashMap<>();

    /**
     * 是否配置了事务管理的方法
     */
    private boolean isTransactional = false;

    public String getBeanClassName() {
        return beanClassName;
    }

    public void setBeanClassName(String beanClassName) {
        this.beanClassName = beanClassName;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public boolean isTransactional() {
        return isTransactional;
    }

    public void setTransactional(boolean transactional) {
        isTransactional = transactional;
    }

    public HashMap<String, String> getPropertyMap() {
        return propertyMap;
    }

    public void setPropertyMap(HashMap<String, String> propertyMap) {
        this.propertyMap = propertyMap;
    }
}
